package com.example.demo.controller;import com.example.demo.Bean.Properties;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RestController;import javax.annotation.Resource;/** * @Author Sunjinxu * @Date: 2022/3/17 下午5:58 * @Version 1.0 */@RestControllerpublic class HelloSpring {    @Resource    private Properties properties;    @GetMapping("/hello")    public String helloSpring() {        return "hello Spring";    }    @GetMapping("/getpara")    public String getPara() {        return properties.toString();    }}